package com.yanqu.road.entity.config.passroad;

import com.yanqu.road.utils.string.StringUtils;

import java.util.List;

/**
 * 关卡交通工具
 */
public class PassRoadTransportInfo {

	private int id;

	//1陆地2水上
	private int type;

	private String effectPar;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getEffectPar() {
		return effectPar;
	}

	public void setEffectPar(String effectPar) {
		this.effectPar = effectPar;
	}

	//0参数1是阅历增加,1参数2是消耗金币
	public int getEffectPar1(){
		List<Integer> paramList = StringUtils.stringToIntegerList(this.effectPar,"\\|");
		return paramList.get(0);
	}
	public int getEffectPar2(){
		List<Integer> paramList = StringUtils.stringToIntegerList(this.effectPar,"\\|");
		return paramList.get(1);
	}
}
